package com.dong.ioc.annotation;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;

/**
 * description
 *
 * @author Administrator 2021/09/02 10:49
 */
@Component
public class MyValue {

    @Autowired
    private MyValueConfiguration myValueConfiguration;

    public String getValue(){
        return myValueConfiguration.getName();
    }
}
